<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>表格边框相关属性</title>
  <style>
    table{
      border: 2px green solid;
    }
    td,th{
      border: 2px orange solid;

    }
  </style>
</head>
<body>
  <table>
    <caption>我的表格</caption>
    <thead>
      <tr>
        <th>姓名</th>
        <th>年龄</th>
        <th>性别</th>

      </tr>
    </thead>
    <tbody>
      <tr>
        <td>张三</td>
        <td>18</td>
        <td>男</td>

      </tr>
      <tr>
        <td>李四</td>
        <td>20</td>
        <td>女</td>

      </tr>
    </tbody>
  </table>
  
</body>
</html>